

package com.hazelcast.security;

import com.hazelcast.config.security.RealmConfig;

import javax.security.auth.callback.Callback;

/**
 * This JAAS {@link Callback} is used to retrieve a {@link RealmConfig} from client or member configuration.
 */
public class RealmConfigCallback implements Callback {

    private final String realmName;
    private RealmConfig realmConfig;

    public RealmConfigCallback(String realmName) {
        this.realmName = realmName;
    }

    public String getRealmName() {
        return realmName;
    }

    public RealmConfig getRealmConfig() {
        return realmConfig;
    }

    public void setRealmConfig(RealmConfig realmConfig) {
        this.realmConfig = realmConfig;
    }
}
